package com.xingmang.common.dto.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @auther: hansom
 * @Version: 1.0
 * @create 2023/4/21 14:40
 */
@Data
@ApiModel("分页请求父类")
public class BasePageParam {
    @NotNull(message = "当前页不能为空")
    @ApiModelProperty(value = "当前页",required = true)
    private Integer pagenum;
    @NotNull(message = "每页显示数不能为空")
    @ApiModelProperty(value = "每页大小",required = true)
    private Integer pagesize;
}
